﻿using System;
using System.Configuration;

namespace ZHDJ.AppInterface
{
    public class ServiceSettings
    {
        public static string SystemCode
        {
            get
            { return ConfigurationManager.AppSettings["ServiceSettings.SystemCode"]; }
        }

        public static string CryptograhpyKey
        {
            get
            { return ConfigurationManager.AppSettings["ServiceSettings.CryptograhpyKey"]; }
        }
        public static string CloudCryptograhpyKey
        {
            get
            { return ConfigurationManager.AppSettings["ServiceSettings.CryptograhpyKey.Cloud"].PadRight(24, 'a'); }
        }

        public static string CryptograhpyIV
        {
            get
            { return ConfigurationManager.AppSettings["ServiceSettings.CryptograhpyIV"].PadRight(8, 'a'); }
        }

        public static string AppAddress
        {
            get
            { return ConfigurationManager.AppSettings["ServiceSettings.AppAddress"]; }
        }

        public static string AppAddressEx
        {
            get
            { return ConfigurationManager.AppSettings["ServiceSettings.AppAddressEx"]; }
        }

        public static string AppAddressNote
        {
            get
            { return ConfigurationManager.AppSettings["ServiceSettings.AppAddressNote"]; }
        }

        public static string LogFilePath
        {
            get
            { return ConfigurationManager.AppSettings["ServiceSettings.LogFilePath"]; }
        }

        public static string MobileInterfaceUrl
        {
            get
            { return ConfigurationManager.AppSettings["ServiceSettings.MobileInterfaceUrl"]; }
        }

        public static string BirthdaysVersion
        {
            get
            { return ConfigurationManager.AppSettings["ServiceSettings.BirthdaysVersion"]; }
        }

        public static string CopyRightDesc
        {
            get
            { return ConfigurationManager.AppSettings["ServiceSettings.CopyRightDesc"]; }
        }

        public static string FileUploadUrl
        {
            get
            { return ConfigurationManager.AppSettings["SXT.Files.UploadUrl"] ?? ""; }
        }

        public static string CenterLoginKey
        {
            get
            { return ConfigurationManager.AppSettings["SXT.Files.CenterLoginKey"] ?? ""; }
        }

        public static string ReportUrl
        {
            get
            { return ConfigurationManager.AppSettings["ServiceSettings.ReportUrl"] ?? ""; }
        }

        public static string VoteActivityID
        {
            get
            { return ConfigurationManager.AppSettings["ServiceSettings.VoteActivityID"] ?? ""; }
        }

        public static string PeopleTestDesc
        {
            get
            { return ConfigurationManager.AppSettings["ServiceSettings.PeopleTestDesc"] ?? ""; }
        }

        public static string APCPTokenAppURl
        {
            get
            { return ConfigurationManager.AppSettings["ServiceSettings.APCPTokenAppURl"] ?? ""; }
        }

        public static string APCPAppURl
        {
            get
            { return ConfigurationManager.AppSettings["ServiceSettings.APCPAppURl"] ?? ""; }
        }

        /// <summary>
        /// 代理服务器地址
        /// </summary>
        public static string WebProxyUrl
        {
            get { return ConfigurationManager.AppSettings["WebProxyUrl"] ?? ""; }
        }

        /// <summary>
        /// 代理服务器帐号
        /// </summary>
        public static string ProxyUserName
        {
            get { return ConfigurationManager.AppSettings["ProxyUserName"] ?? ""; }
        }

        /// <summary>
        /// 代理服务器密码
        /// </summary>
        public static string ProxyPassword
        {
            get { return ConfigurationManager.AppSettings["ProxyPassword"] ?? ""; }
        }

        /// <summary>
        /// 
        /// </summary>
        public static string WebProxyHost
        {
            get { return ConfigurationManager.AppSettings["WebProxyHost"] ?? ""; }
        }

        /// <summary>
        /// 
        /// </summary>
        public static int WebProxyPort
        {
            get
            {
                string port = ConfigurationManager.AppSettings["WebProxyPort"] ?? "8080";
                return Convert.ToInt32(port);
            }
        }

        /// <summary>
        /// 学习测试  专题ID 多个用;分隔
        /// </summary>
        public static string TestSpecialIds
        {
            get
            {

                return ConfigurationManager.AppSettings["Test.SpecialIds"] ?? "";
            }
        }

        /// <summary>
        /// 学习测试  专题积分描述 多个用;分隔
        /// </summary>
        public static string SpecialDesc
        {
            get { return ConfigurationManager.AppSettings["Test.SpecialDesc"] ?? ""; }
        }

        /// <summary>
        /// 禁用用户
        /// </summary>
        public static string DisableUsers
        {
            get { return ConfigurationManager.AppSettings["Mobile.DisableUsers"] ?? ""; }
        }

        /// <summary>
        /// 党的生日
        /// </summary>
        public static string PartyBirthday
        {
            get { return ConfigurationManager.AppSettings["ServiceSettings.PartyBirthday"] ?? ""; }
        }

        /// <summary>
        /// SSO服务接口
        /// </summary>
        public static string SSOWebService
        {
            get { return ConfigurationManager.AppSettings["ServiceSettings.SSOWebService"] ?? ""; }
        }
    }
}